package io;

import java.io.*;

public class OosDemo {
    public static void main(String[] args) throws IOException {
      String name="张三";
      String gender="公的";
      int age=78;
      String[] otherInof={"是一名学生，住黑龙家，喜欢大飞机"};
      Student zs=new Student(name,age,gender,otherInof);
      System.out.println(zs);
        FileOutputStream fis=new FileOutputStream("studen.txt");
        ObjectOutputStream SOS=new ObjectOutputStream(fis);
        SOS.writeObject(SOS);
        System.out.println("搞定");
        SOS.close();

    }
}
